home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 44
/
Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso
/
Aminet
/
gfx
/
3d
/
3dgpl.lha
/
graphics.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-20
|
2KB
|
39 lines
#ifndef _GRAPHICS_H_
#define _GRAPHICS_H_
/** 3DGPL *************************************************\
* (8bit deep bitmap) *
* Header for 2D graphics stuff. *
* *
* grp-base.c basic graphics; *
* grp-text.c text; *
* grp-poly.c polygon rendering. *
* *
* (6/1995) By Sergei Savhenko. (savs@cs.mcgill.ca). *
* Copyright (c) 1995 Sergei Savchenko. *
* THIS SOURCE CODE CAN'T BE USED FOR COMERCIAL PURPOSES *
* WITHOUT AUTHORISATION *
\**********************************************************/
#define G_MAX_TUPLES 50 /* big enough? */
#define G_MAX_SHADED_TUPLES 100
#define G_MAX_TEXTURED_TUPLES 120
unsigned char *G_init_graphics(void);
void G_clear(void);
void G_dot(int *vertex,unsigned char colour);
void G_line(int *vertex1,int *vertex2,unsigned char colour);
void G_text(int x,int y,char *string,unsigned char colour);
void G_ambient_polygon(int *edges,int length,unsigned char colour);
void G_shaded_polygon(int *edges,int length);
void G_textured_polygon(int *edges,int length,int *O,int *u,int *v,
unsigned char *texture,int log_texture_size,
int log_texture_scale
);
/*********************************************************/
#endif